<?php
/**
 * Smarty plugin
 * @package smarty-debug
 */
function smarty_function__d( $params, &$smarty )
{
	if( isset( $params['mode'] ) )
	{
		$mode = $params['mode'];
		unset( $params['mode'] );
	}
	
	$_r = '';
	$view = view::__getMe( );
	foreach( $params as $k => $v )
		$_r .= $view ->display( "bits/dump.tpl", array( 'header' => $k, 'body' => $v ) );
	
	return $_r;
}

?>